package com.suray.rgv.son.data;

import com.suray.basic.wcs.utils.Crc16;
import com.suray.basic.wcs.utils.comm.BaseMessage;

public class ModbusBaseMessage extends BaseMessage {
    /**
     * @param description :报文的说明信息
     * @param isBig
     */
    public ModbusBaseMessage(String description, boolean isBig) {
        super(description, isBig);
    }

    public int calcCrc(byte[] data) {
        return Crc16.CRC_XModem(data, data.length - 2);
    }
}
